import request from '@/utils/request'
export function getRevenRankList({ page, keyword }) {
  return request({
    url: '/back/vip/distribution',
    method: 'get',
    params: { type: 'list', page, keyword }
  })
}
export function getRevenueJuniorList({ page, id }) {
  return request({
    url: '/back/vip/distribution',
    method: 'get',
    params: { type: 'lookNextLevel', page, id }
  })
}
export function getRecommendList({ page, id }) {
  return request({
    url: '/back/vip/distribution',
    method: 'get',
    params: { type: 'recommendProfit', page, id }
  })
}
export function getRevenueShopList({ page, id }) {
  return request({
    url: '/back/vip/distribution',
    method: 'get',
    params: { type: 'buyProfit', page, id }
  })
}
export function setPosterCover({ id, poster_cover, title }) {
  return request({
    url: '/back/vip/sharePoster',
    method: 'post',
    params: { id, type: 'savePoster', poster_cover, title }
  })
}
export function getPosterCover() {
  return request({
    url: '/back/vip/sharePoster',
    method: 'get',
    params: { type: 'list' }
  })
}
